import React, { Component } from 'react';

class App extends Component {
  state={
    value:"1"
  }

  handleChange=(e)=>{
console.log(e)
this.setState({
  value:e.target.value
})
  }
  render() {
    return (
      <div>
        <select name="" id="" value={
          this.state.value
        }
        onChange={this.handleChange}
        >
          <option value="1">1</option>
          <option value="2">2</option>
          <option value="3">3</option>
          <option value="4">4</option>
        </select>
      </div>
    );
  }
}

export default App;